package com.bootdo.fx.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.bootdo.fx.dao.GoodsInfoDao;
import com.bootdo.fx.domain.GoodsInfoDO;
import com.bootdo.fx.service.GoodsInfoService;



@Service
public class GoodsInfoServiceImpl implements GoodsInfoService {
	@Autowired
	private GoodsInfoDao goodsInfoDao;
	
	@Override
	public GoodsInfoDO get(Long goodsId){
		return goodsInfoDao.get(goodsId);
	}
	
	@Override
	public List<GoodsInfoDO> list(Map<String, Object> map){
		return goodsInfoDao.list(map);
	}
	
	@Override
	public int count(Map<String, Object> map){
		return goodsInfoDao.count(map);
	}
	
	@Override
	public int save(GoodsInfoDO goodsInfo){
		return goodsInfoDao.save(goodsInfo);
	}
	
	@Override
	public int update(GoodsInfoDO goodsInfo){
		return goodsInfoDao.update(goodsInfo);
	}
	
	@Override
	public int remove(Long goodsId){
		return goodsInfoDao.remove(goodsId);
	}
	
	@Override
	public int batchRemove(Long[] goodsIds){
		return goodsInfoDao.batchRemove(goodsIds);
	}
	
}
